<template>
  <div>
<van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
  <van-swipe-item v-for="item in slider" :key="item.id">
    
    <img :src="item.imgs.split(`||`)[0]"  crossOrigin>
    
    </van-swipe-item>
 

</van-swipe>
  </div>
</template>

<script>
import fetchCate from '@api'
  export default {
    props:['slider']
  }
</script>

<style lang="scss" scoped>
.my-swipe{
  border-radius: 20px;
  width: 100%;
  height: 200px;
}
.my-swipe img{
  display: block;
  width: 100%;
  height: 100%;
}
.my-swipe .van-swipe-item {
    color: #fff;
    font-size: 20px;
    line-height: 150px;
    text-align: center;
    background-color: powderblue;
  }
</style>